//
// Created by darcy on 4/30/21.
//

#include "../Include/SavingsAccount.h"

SavingsAccount::SavingsAccount(double b, double i) : Account(b) {
    interestRate = i / 100;
}

double SavingsAccount::calculateInterest() {
    return interestRate * Account::getBalance();
}
